home *** CD-ROM | disk | FTP | other *** search
Wrap
wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) NNNNAAAAMMMMEEEE winfo - Return window-related information SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS wwwwiiiinnnnffffoooo _o_p_t_i_o_n ?_a_r_g _a_r_g ...? DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN The wwwwiiiinnnnffffoooo command is used to retrieve information about windows managed by Tk. It can take any of a number of different forms, depending on the _o_p_t_i_o_n argument. The legal forms are: wwwwiiiinnnnffffoooo aaaattttoooommmm ?----ddddiiiissssppppllllaaaayyyyooooffff _w_i_n_d_o_w? _n_a_m_e Returns a decimal string giving the integer identifier for the atom whose name is _n_a_m_e. If no atom exists with the name _n_a_m_e then a new one is created. If the ----ddddiiiissssppppllllaaaayyyyooooffff option is given then the atom is | looked up on the display of _w_i_n_d_o_w; otherwise it is looked up on | the display of the application's main window. wwwwiiiinnnnffffoooo aaaattttoooommmmnnnnaaaammmmeeee ?----ddddiiiissssppppllllaaaayyyyooooffff _w_i_n_d_o_w? _i_d Returns the textual name for the atom whose integer identifier is _i_d. If the ----ddddiiiissssppppllllaaaayyyyooooffff option is given then the identifier is looked| up on the display of _w_i_n_d_o_w; otherwise it is looked up on the | display of the application's main window. This command is the inverse of the wwwwiiiinnnnffffoooo aaaattttoooommmm command. It generates an error if no such atom exists. wwwwiiiinnnnffffoooo cccceeeellllllllssss _w_i_n_d_o_w Returns a decimal string giving the number of cells in the color map for _w_i_n_d_o_w. wwwwiiiinnnnffffoooo cccchhhhiiiillllddddrrrreeeennnn _w_i_n_d_o_w Returns a list containing the path names of all the children of _w_i_n_d_o_w. Top-level windows are returned as children of their logical parents. wwwwiiiinnnnffffoooo ccccllllaaaassssssss _w_i_n_d_o_w Returns the class name for _w_i_n_d_o_w. wwwwiiiinnnnffffoooo ccccoooolllloooorrrrmmmmaaaappppffffuuuullllllll _w_i_n_d_o_w Returns 1 if the colormap for _w_i_n_d_o_w is known to be full, 0 | otherwise. The colormap for a window is ``known'' to be full if the| last attempt to allocate a new color on that window failed and this | application hasn't freed any colors in the colormap since the failed| allocation. wwwwiiiinnnnffffoooo ccccoooonnnnttttaaaaiiiinnnniiiinnnngggg ?----ddddiiiissssppppllllaaaayyyyooooffff _w_i_n_d_o_w? _r_o_o_t_X _r_o_o_t_Y Returns the path name for the window containing the point given by _r_o_o_t_X and _r_o_o_t_Y. _R_o_o_t_X and _r_o_o_t_Y are specified in screen units (i.e. any form acceptable to TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss) in the coordinate system of the root window (if a virtual-root window manager is in use then the coordinate system of the virtual root window is used). If the | PPPPaaaaggggeeee 1111 wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) ----ddddiiiissssppppllllaaaayyyyooooffff option is given then the coordinates refer to the screen | containing _w_i_n_d_o_w; otherwise they refer to the screen of the | application's main window. If no window in this application contains the point then an empty string is returned. In selecting the containing window, children are given higher priority than parents and among siblings the highest one in the stacking order is chosen. wwwwiiiinnnnffffoooo ddddeeeepppptttthhhh _w_i_n_d_o_w Returns a decimal string giving the depth of _w_i_n_d_o_w (number of bits per pixel). wwwwiiiinnnnffffoooo eeeexxxxiiiissssttttssss _w_i_n_d_o_w Returns 1 if there exists a window named _w_i_n_d_o_w, 0 if no such window exists. wwwwiiiinnnnffffoooo ffffppppiiiixxxxeeeellllssss _w_i_n_d_o_w _n_u_m_b_e_r Returns a floating-point value giving the number of pixels in _w_i_n_d_o_w corresponding to the distance given by _n_u_m_b_e_r. _N_u_m_b_e_r may be specified in any of the forms acceptable to TTTTkkkk____GGGGeeeettttSSSSccccrrrreeeeeeeennnnMMMMMMMM, such as ``2.0c'' or ``1i''. The return value may be fractional; for an integer value, use wwwwiiiinnnnffffoooo ppppiiiixxxxeeeellllssss. wwwwiiiinnnnffffoooo ggggeeeeoooommmmeeeettttrrrryyyy _w_i_n_d_o_w Returns the geometry for _w_i_n_d_o_w, in the form _w_i_d_t_hxxxx_h_e_i_g_h_t++++_x++++_y. All dimensions are in pixels. wwwwiiiinnnnffffoooo hhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w Returns a decimal string giving _w_i_n_d_o_w's height in pixels. When a window is first created its height will be 1 pixel; the height will eventually be changed by a geometry manager to fulfill the window's needs. If you need the true height immediately after creating a widget, invoke uuuuppppddddaaaatttteeee to force the geometry manager to arrange it, or use wwwwiiiinnnnffffoooo rrrreeeeqqqqhhhheeeeiiiigggghhhhtttt to get the window's requested height instead of its actual height. wwwwiiiinnnnffffoooo iiiidddd _w_i_n_d_o_w Returns a hexadecimal string indicating the X identifier for _w_i_n_d_o_w. wwwwiiiinnnnffffoooo iiiinnnntttteeeerrrrppppssss ?----ddddiiiissssppppllllaaaayyyyooooffff _w_i_n_d_o_w? Returns a list whose members are the names of all Tcl interpreters (e.g. all Tk-based applications) currently registered for a | particular display. If the ----ddddiiiissssppppllllaaaayyyyooooffff option is given then the | return value refers to the display of _w_i_n_d_o_w; otherwise it refers | to the display of the application's main window. wwwwiiiinnnnffffoooo iiiissssmmmmaaaappppppppeeeedddd _w_i_n_d_o_w Returns 1111 if _w_i_n_d_o_w is currently mapped, 0000 otherwise. wwwwiiiinnnnffffoooo mmmmaaaannnnaaaaggggeeeerrrr _w_i_n_d_o_w Returns the name of the geometry manager currently responsible for | _w_i_n_d_o_w, or an empty string if _w_i_n_d_o_w isn't managed by any geometry | PPPPaaaaggggeeee 2222 wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) manager. The name is usually the name of the Tcl command for the | geometry manager, such as ppppaaaacccckkkk or ppppllllaaaacccceeee. If the geometry manager is| a widget, such as canvases or text, the name is the widget's class | command, such as ccccaaaannnnvvvvaaaassss. wwwwiiiinnnnffffoooo nnnnaaaammmmeeee _w_i_n_d_o_w Returns _w_i_n_d_o_w's name (i.e. its name within its parent, as opposed to its full path name). The command wwwwiiiinnnnffffoooo nnnnaaaammmmeeee .... will return the name of the application. wwwwiiiinnnnffffoooo ppppaaaarrrreeeennnntttt _w_i_n_d_o_w Returns the path name of _w_i_n_d_o_w's parent, or an empty string if _w_i_n_d_o_w is the main window of the application. wwwwiiiinnnnffffoooo ppppaaaatttthhhhnnnnaaaammmmeeee ?----ddddiiiissssppppllllaaaayyyyooooffff _w_i_n_d_o_w? _i_d Returns the path name of the window whose X identifier is _i_d. _I_d must be a decimal, hexadecimal, or octal integer and must correspond to a window in the invoking application. If the ----ddddiiiissssppppllllaaaayyyyooooffff option | is given then the identifier is looked up on the display of _w_i_n_d_o_w; | otherwise it is looked up on the display of the application's main | window. wwwwiiiinnnnffffoooo ppppiiiixxxxeeeellllssss _w_i_n_d_o_w _n_u_m_b_e_r Returns the number of pixels in _w_i_n_d_o_w corresponding to the distance given by _n_u_m_b_e_r. _N_u_m_b_e_r may be specified in any of the forms acceptable to TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss, such as ``2.0c'' or ``1i''. The result is rounded to the nearest integer value; for a fractional result, use wwwwiiiinnnnffffoooo ffffppppiiiixxxxeeeellllssss. wwwwiiiinnnnffffoooo ppppooooiiiinnnntttteeeerrrrxxxx _w_i_n_d_o_w If the mouse pointer is on the same screen as _w_i_n_d_o_w, returns the | pointer's x coordinate, measured in pixels in the screen's root | window. If a virtual root window is in use on the screen, the | position is measured in the virtual root. If the mouse pointer | isn't on the same screen as _w_i_n_d_o_w then -1 is returned. wwwwiiiinnnnffffoooo ppppooooiiiinnnntttteeeerrrrxxxxyyyy _w_i_n_d_o_w If the mouse pointer is on the same screen as _w_i_n_d_o_w, returns a list| with two elements, which are the pointer's x and y coordinates | measured in pixels in the screen's root window. If a virtual root | window is in use on the screen, the position is computed in the | virtual root. If the mouse pointer isn't on the same screen as | _w_i_n_d_o_w then both of the returned coordinates are -1. wwwwiiiinnnnffffoooo ppppooooiiiinnnntttteeeerrrryyyy _w_i_n_d_o_w If the mouse pointer is on the same screen as _w_i_n_d_o_w, returns the | pointer's y coordinate, measured in pixels in the screen's root | window. If a virtual root window is in use on the screen, the | position is computed in the virtual root. If the mouse pointer | isn't on the same screen as _w_i_n_d_o_w then -1 is returned. PPPPaaaaggggeeee 3333 wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo rrrreeeeqqqqhhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w Returns a decimal string giving _w_i_n_d_o_w's requested height, in pixels. This is the value used by _w_i_n_d_o_w's geometry manager to compute its geometry. wwwwiiiinnnnffffoooo rrrreeeeqqqqwwwwiiiiddddtttthhhh _w_i_n_d_o_w Returns a decimal string giving _w_i_n_d_o_w's requested width, in pixels. This is the value used by _w_i_n_d_o_w's geometry manager to compute its geometry. wwwwiiiinnnnffffoooo rrrrggggbbbb _w_i_n_d_o_w _c_o_l_o_r Returns a list containing three decimal values, which are the red, green, and blue intensities that correspond to _c_o_l_o_r in the window given by _w_i_n_d_o_w. _C_o_l_o_r may be specified in any of the forms acceptable for a color option. wwwwiiiinnnnffffoooo rrrroooooooottttxxxx _w_i_n_d_o_w Returns a decimal string giving the x-coordinate, in the root window of the screen, of the upper-left corner of _w_i_n_d_o_w's border (or _w_i_n_d_o_w if it has no border). wwwwiiiinnnnffffoooo rrrroooooooottttyyyy _w_i_n_d_o_w Returns a decimal string giving the y-coordinate, in the root window of the screen, of the upper-left corner of _w_i_n_d_o_w's border (or _w_i_n_d_o_w if it has no border). wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnn _w_i_n_d_o_w Returns the name of the screen associated with _w_i_n_d_o_w, in the form _d_i_s_p_l_a_y_N_a_m_e._s_c_r_e_e_n_I_n_d_e_x. wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnncccceeeellllllllssss _w_i_n_d_o_w Returns a decimal string giving the number of cells in the default color map for _w_i_n_d_o_w's screen. wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnddddeeeepppptttthhhh _w_i_n_d_o_w Returns a decimal string giving the depth of the root window of _w_i_n_d_o_w's screen (number of bits per pixel). wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnhhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w Returns a decimal string giving the height of _w_i_n_d_o_w's screen, in pixels. wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnmmmmmmmmhhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w Returns a decimal string giving the height of _w_i_n_d_o_w's screen, in millimeters. wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnmmmmmmmmwwwwiiiiddddtttthhhh _w_i_n_d_o_w Returns a decimal string giving the width of _w_i_n_d_o_w's screen, in millimeters. PPPPaaaaggggeeee 4444 wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnvvvviiiissssuuuuaaaallll _w_i_n_d_o_w Returns one of the following strings to indicate the default visual class for _w_i_n_d_o_w's screen: ddddiiiirrrreeeeccccttttccccoooolllloooorrrr, ggggrrrraaaayyyyssssccccaaaalllleeee, ppppsssseeeeuuuuddddooooccccoooolllloooorrrr, ssssttttaaaattttiiiiccccccccoooolllloooorrrr, ssssttttaaaattttiiiiccccggggrrrraaaayyyy, or ttttrrrruuuueeeeccccoooolllloooorrrr. wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnwwwwiiiiddddtttthhhh _w_i_n_d_o_w Returns a decimal string giving the width of _w_i_n_d_o_w's screen, in pixels. wwwwiiiinnnnffffoooo sssseeeerrrrvvvveeeerrrr _w_i_n_d_o_w Returns a string containing information about the server for | _w_i_n_d_o_w's display. The exact format of this string may vary from | platform to platform. For X servers the string has the form | ``XXXX_m_a_j_o_rRRRR_m_i_n_o_r _v_e_n_d_o_r _v_e_n_d_o_r_V_e_r_s_i_o_n'' where _m_a_j_o_r and _m_i_n_o_r are the | version and revision numbers provided by the server (e.g., XXXX11111111RRRR5555), | _v_e_n_d_o_r is the name of the vendor for the server, and _v_e_n_d_o_r_R_e_l_e_a_s_e | is an integer release number provided by the server. wwwwiiiinnnnffffoooo ttttoooopppplllleeeevvvveeeellll _w_i_n_d_o_w Returns the path name of the top-level window containing _w_i_n_d_o_w. wwwwiiiinnnnffffoooo vvvviiiieeeewwwwaaaabbbblllleeee _w_i_n_d_o_w Returns 1 if _w_i_n_d_o_w and all of its ancestors up through the nearest | toplevel window are mapped. Returns 0 if any of these windows are | not mapped. wwwwiiiinnnnffffoooo vvvviiiissssuuuuaaaallll _w_i_n_d_o_w Returns one of the following strings to indicate the visual class for _w_i_n_d_o_w: ddddiiiirrrreeeeccccttttccccoooolllloooorrrr, ggggrrrraaaayyyyssssccccaaaalllleeee, ppppsssseeeeuuuuddddooooccccoooolllloooorrrr, ssssttttaaaattttiiiiccccccccoooolllloooorrrr, ssssttttaaaattttiiiiccccggggrrrraaaayyyy, or ttttrrrruuuueeeeccccoooolllloooorrrr. wwwwiiiinnnnffffoooo vvvviiiissssuuuuaaaallllssssaaaavvvvaaaaiiiillllaaaabbbblllleeee _w_i_n_d_o_w Returns a list whose elements describe the visuals available for | _w_i_n_d_o_w's screen. Each element consists of a visual class followed | by an integer depth. The class has the same form as returned by | wwwwiiiinnnnffffoooo vvvviiiissssuuuuaaaallll. The depth gives the number of bits per pixel in the | visual. wwwwiiiinnnnffffoooo vvvvrrrrooooooootttthhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w Returns the height of the virtual root window associated with _w_i_n_d_o_w if there is one; otherwise returns the height of _w_i_n_d_o_w's screen. wwwwiiiinnnnffffoooo vvvvrrrroooooooottttwwwwiiiiddddtttthhhh _w_i_n_d_o_w Returns the width of the virtual root window associated with _w_i_n_d_o_w if there is one; otherwise returns the width of _w_i_n_d_o_w's screen. wwwwiiiinnnnffffoooo vvvvrrrroooooooottttxxxx _w_i_n_d_o_w Returns the x-offset of the virtual root window associated with _w_i_n_d_o_w, relative to the root window of its screen. This is normally either zero or negative. Returns 0 if there is no virtual root window for _w_i_n_d_o_w. PPPPaaaaggggeeee 5555 wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo((((3333TTTTkkkk)))) wwwwiiiinnnnffffoooo vvvvrrrroooooooottttyyyy _w_i_n_d_o_w Returns the y-offset of the virtual root window associated with _w_i_n_d_o_w, relative to the root window of its screen. This is normally either zero or negative. Returns 0 if there is no virtual root window for _w_i_n_d_o_w. wwwwiiiinnnnffffoooo wwwwiiiiddddtttthhhh _w_i_n_d_o_w Returns a decimal string giving _w_i_n_d_o_w's width in pixels. When a window is first created its width will be 1 pixel; the width will eventually be changed by a geometry manager to fulfill the window's needs. If you need the true width immediately after creating a widget, invoke uuuuppppddddaaaatttteeee to force the geometry manager to arrange it, or use wwwwiiiinnnnffffoooo rrrreeeeqqqqwwwwiiiiddddtttthhhh to get the window's requested width instead of its actual width. wwwwiiiinnnnffffoooo xxxx _w_i_n_d_o_w Returns a decimal string giving the x-coordinate, in _w_i_n_d_o_w's parent, of the upper-left corner of _w_i_n_d_o_w's border (or _w_i_n_d_o_w if it has no border). wwwwiiiinnnnffffoooo yyyy _w_i_n_d_o_w Returns a decimal string giving the y-coordinate, in _w_i_n_d_o_w's parent, of the upper-left corner of _w_i_n_d_o_w's border (or _w_i_n_d_o_w if it has no border). KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS atom, children, class, geometry, height, identifier, information, interpreters, mapped, parent, path name, screen, virtual root, width, window PPPPaaaaggggeeee 6666